package com.wkbb.common.enums;

/**
 * @author yangdaofang
 * 创建时间：2020-05-21 11:54
 */
public enum SmartStatusEnum {
    /**
     * 新增或修改
     */
    ADD_UPDATE_STATUS(0,"新增或修改"),
    /**
     * 删除
     */
    DELETE_STATUS(1,"删除");

    private SmartStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (SmartStatusEnum smartStatusEnum : SmartStatusEnum.values()) {
            if (smartStatusEnum.getValue().intValue()==value) {
                return smartStatusEnum.getDesc();
            }
        }
        return null;
    }
}
